<div class="nhanviens view">
<h2><?php  __('Nhanvien');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhanvien['Nhanvien']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Masonv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhanvien['Nhanvien']['masonv']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Passnv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhanvien['Nhanvien']['passnv']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tennv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhanvien['Nhanvien']['tennv']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Phainv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhanvien['Nhanvien']['phainv']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Diachinv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhanvien['Nhanvien']['diachinv']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngaysinhnv'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $nhanvien['Nhanvien']['ngaysinhnv']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Thực hiện'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Sửa Nhân viên', true), array('action' => 'edit', $nhanvien['Nhanvien']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Xóa Nhân viên', true), array('action' => 'delete', $nhanvien['Nhanvien']['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $nhanvien['Nhanvien']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('DS Nhân viên', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Nhân viên mới', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Biên lai phạt', true), array('controller' => 'bienlaiphats', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Biên lai phạt mới', true), array('controller' => 'bienlaiphats', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Giao dịch mượn trả', true), array('controller' => 'giaodichmuontras', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Giao dịch mượn trả mới', true), array('controller' => 'giaodichmuontras', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Hóa đơn xuất', true), array('controller' => 'hdxuats', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Hóa đơn xuất mới', true), array('controller' => 'hdxuats', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Hóa đơn nhập', true), array('controller' => 'hoadonnhaps', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Hóa đơn nhập mới', true), array('controller' => 'hoadonnhaps', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Hóa đơn thanh lý', true), array('controller' => 'hoadonthanhlies', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Hóa đon thanh lý mới', true), array('controller' => 'hoadonthanhlies', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Trực', true), array('controller' => 'trucs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Trực mới', true), array('controller' => 'trucs', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Liên kất Biên lai phạt');?></h3>
	<?php if (!empty($nhanvien['Bienlaiphat'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nhanvien Id'); ?></th>
		<th><?php __('Mabl'); ?></th>
		<th><?php __('Ngaylap'); ?></th>
		<th><?php __('Noilap'); ?></th>
		<th class="actions"><?php __('Thực hiện');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nhanvien['Bienlaiphat'] as $bienlaiphat):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $bienlaiphat['id'];?></td>
			<td><?php echo $bienlaiphat['nhanvien_id'];?></td>
			<td><?php echo $bienlaiphat['mabl'];?></td>
			<td><?php echo $bienlaiphat['ngaylap'];?></td>
			<td><?php echo $bienlaiphat['noilap'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'bienlaiphats', 'action' => 'view', $bienlaiphat['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'bienlaiphats', 'action' => 'edit', $bienlaiphat['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'bienlaiphats', 'action' => 'delete', $bienlaiphat['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $bienlaiphat['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Biên lai phạt mới', true), array('controller' => 'bienlaiphats', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Liên kết Giao dịch mượn trả');?></h3>
	<?php if (!empty($nhanvien['Giaodichmuontra'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Docgia Id'); ?></th>
		<th><?php __('Nhanvien Id'); ?></th>
		<th><?php __('Cuonsach Id'); ?></th>
		<th><?php __('Magd'); ?></th>
		<th><?php __('Ngaymuon'); ?></th>
		<th><?php __('Ngaytra'); ?></th>
		<th><?php __('Hantra'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nhanvien['Giaodichmuontra'] as $giaodichmuontra):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $giaodichmuontra['id'];?></td>
			<td><?php echo $giaodichmuontra['docgia_id'];?></td>
			<td><?php echo $giaodichmuontra['nhanvien_id'];?></td>
			<td><?php echo $giaodichmuontra['cuonsach_id'];?></td>
			<td><?php echo $giaodichmuontra['magd'];?></td>
			<td><?php echo $giaodichmuontra['ngaymuon'];?></td>
			<td><?php echo $giaodichmuontra['ngaytra'];?></td>
			<td><?php echo $giaodichmuontra['hantra'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'giaodichmuontras', 'action' => 'view', $giaodichmuontra['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'giaodichmuontras', 'action' => 'edit', $giaodichmuontra['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'giaodichmuontras', 'action' => 'delete', $giaodichmuontra['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $giaodichmuontra['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Giao dịch mượn trả mới', true), array('controller' => 'giaodichmuontras', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Liên kết Hóa đơn xuất');?></h3>
	<?php if (!empty($nhanvien['Hdxuat'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nhanvien Id'); ?></th>
		<th><?php __('Sohdxuat'); ?></th>
		<th><?php __('Ngay'); ?></th>
		<th><?php __('Noi'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nhanvien['Hdxuat'] as $hdxuat):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $hdxuat['id'];?></td>
			<td><?php echo $hdxuat['nhanvien_id'];?></td>
			<td><?php echo $hdxuat['sohdxuat'];?></td>
			<td><?php echo $hdxuat['ngay'];?></td>
			<td><?php echo $hdxuat['noi'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'hdxuats', 'action' => 'view', $hdxuat['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'hdxuats', 'action' => 'edit', $hdxuat['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'hdxuats', 'action' => 'delete', $hdxuat['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $hdxuat['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Hóa đơn xuất mới', true), array('controller' => 'hdxuats', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Liên kết Hóa đơn nhập');?></h3>
	<?php if (!empty($nhanvien['Hoadonnhap'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nhanvien Id'); ?></th>
		<th><?php __('Sohd'); ?></th>
		<th><?php __('Ngaynhap'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nhanvien['Hoadonnhap'] as $hoadonnhap):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $hoadonnhap['id'];?></td>
			<td><?php echo $hoadonnhap['nhanvien_id'];?></td>
			<td><?php echo $hoadonnhap['sohd'];?></td>
			<td><?php echo $hoadonnhap['ngaynhap'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'hoadonnhaps', 'action' => 'view', $hoadonnhap['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'hoadonnhaps', 'action' => 'edit', $hoadonnhap['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'hoadonnhaps', 'action' => 'delete', $hoadonnhap['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $hoadonnhap['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Hóa đơn nhập', true), array('controller' => 'hoadonnhaps', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Liên kết Hóa đơn thanh lý');?></h3>
	<?php if (!empty($nhanvien['Hoadonthanhly'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Nhanvien Id'); ?></th>
		<th><?php __('Sohdtl'); ?></th>
		<th><?php __('Ngaythanhly'); ?></th>
		<th><?php __('Noithanhly'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nhanvien['Hoadonthanhly'] as $hoadonthanhly):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $hoadonthanhly['id'];?></td>
			<td><?php echo $hoadonthanhly['nhanvien_id'];?></td>
			<td><?php echo $hoadonthanhly['sohdtl'];?></td>
			<td><?php echo $hoadonthanhly['ngaythanhly'];?></td>
			<td><?php echo $hoadonthanhly['noithanhly'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'hoadonthanhlies', 'action' => 'view', $hoadonthanhly['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'hoadonthanhlies', 'action' => 'edit', $hoadonthanhly['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'hoadonthanhlies', 'action' => 'delete', $hoadonthanhly['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $hoadonthanhly['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Hóa đơn thanh lý mới', true), array('controller' => 'hoadonthanhlies', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Liên kết Trực');?></h3>
	<?php if (!empty($nhanvien['Truc'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Catruc Id'); ?></th>
		<th><?php __('Nhanvien Id'); ?></th>
		<th><?php __('Ngaytruc'); ?></th>
		<th class="actions"><?php __('Thực hiện');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($nhanvien['Truc'] as $truc):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $truc['id'];?></td>
			<td><?php echo $truc['catruc_id'];?></td>
			<td><?php echo $truc['nhanvien_id'];?></td>
			<td><?php echo $truc['ngaytruc'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'trucs', 'action' => 'view', $truc['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'trucs', 'action' => 'edit', $truc['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'trucs', 'action' => 'delete', $truc['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $truc['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Trực mới', true), array('controller' => 'trucs', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
